﻿<%@ Page Title="" Language="C#" MasterPageFile="~/ForumMaster.Master" AutoEventWireup="true"
    CodeBehind="Thread.aspx.cs" Inherits="FilStartUps.Forum.Thread" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>

<%@ Register Src="../Controls/FilStartUps_PageNav.ascx" TagName="FilStartUps_PageNav"
    TagPrefix="uc1" %>
<asp:Content ID="Nav" ContentPlaceHolderID="MainNav" runat="server">
    <uc1:FilStartUps_PageNav ID="FilStartUps_PageNav1" runat="server" />
</asp:Content>
<asp:Content ID="Main" ContentPlaceHolderID="ContentForumDisplay" runat="server">
    <div class="location">
        <a href="#" id="rssLink" enableviewstate="false">
            <img src="../Content/images/feed-icon.png" alt="thread - Rss" /></a>
        <h2>
            <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/Forum/ForumDisplay.aspx">Home</asp:HyperLink>
            &raquo;
            <asp:Label runat="server" ID="lbforum"></asp:Label>
        </h2>
    </div>
    <asp:LinkButton runat="server" ID="lbnewthread" OnClick="lbnewthread_Click">Create New Thread</asp:LinkButton>
    <div class="gray" id="divDescription">
    </div>
    <asp:Repeater runat="server" ID="rpForumThread" OnItemCommand="rpForumThread_ItemCommand">
        <HeaderTemplate>
            <h2>
                <asp:Label runat="server" ID="lbforumthreads">Threads</asp:Label></h2>
            <table width="100%" cellpadding="11">
        </HeaderTemplate>
        <ItemTemplate>
            <tr>
                <td width="70%">
                    <h2>
                        <asp:LinkButton runat="server" ID="lbthreadtitle" CommandName="SelectRow" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "forumthreadidPK") %>'
                            Text='<%# DataBinder.Eval(Container.DataItem, "threadtitle") %>'></asp:LinkButton>
                    </h2>
                    <asp:Label ID="Label1" runat="server">by:</asp:Label></asp:Label> &nbsp;<asp:Label runat="server" ID="lbemail" Text='<%# DataBinder.Eval(Container.DataItem, "membername") %>'></asp:Label>
                </td>
                <td>
                    <asp:Label runat="server" CssClass="gray" ID="lbviews">Views</asp:Label>
                    <br />
                    <asp:Label runat="server" ID="lbtotalviews" Text='<%# DataBinder.Eval(Container.DataItem, "views") %>'></asp:Label>
                </td>
                <td>
                    <asp:Label runat="server" CssClass="gray" ID="lbpost">Post</asp:Label>
                    <br />
                    <asp:Label runat="server" ID="lbtotalpost" Text='<%# DataBinder.Eval(Container.DataItem, "totalpost") %>'></asp:Label>
                </td>
            </tr>
        </ItemTemplate>
        <FooterTemplate>
            </table>
        </FooterTemplate>
    </asp:Repeater>
 
    <asp:Repeater runat="server"
        ID="Repeater1">
        
        </asp:Repeater>
    
    <table id="tblError" runat="server" width="100%" cellpadding="11" >
	<tr><td><div id="divError" runat="server"><asp:Label runat="server" Visible="false" ID="lberror"></asp:Label></div></td></tr>
	</table>
</asp:Content>
